<template>
  <div class="app">
    <router-view></router-view>
    <van-tabbar
      v-model="active"
      active-color="#e40137"
      inactive-color="#B4B4BD"
      route
      placeholder
    >
      <van-tabbar-item to="/company" icon="home-o">
        <span>公司</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_gs_nor"> </i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/question" icon="search">
        <span>刷题</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_st_sel"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/find" icon="friends-o">
        <span>发现</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_fx_nor"></i>
        </template>
      </van-tabbar-item>
      <van-tabbar-item to="/my" icon="setting-o">
        <span>我的</span>
        <template #icon>
          <i class="iconfont iconicon_footbar_wode_nor"></i>
        </template>
      </van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less">
  .van-tabbar{
    .iconfont {
      font-size: 28px;
    }
  }
</style>
